package com.slwu.factory.method;

public class Main {
    public static void main(String[] args) {
        ImageReaderFactory readerFactory;
        readerFactory = new GIFReaderFactory();

        readerFactory.getImageReader().read("test.gif");

        readerFactory = new JPGReaderFactory();

        readerFactory.getImageReader().read("test.jpg");
    }
}
